
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8" />
<title>Blank Page - Ace Admin</title> [#include
"/admin/common/commonurl.html"]

<link rel="stylesheet"
	href="${siteurl}assets/plugs/kindeditor/themes/default/default.css" />
<script charset="utf-8"
	src="${siteurl}assets/plugs/kindeditor/kindeditor-all-min.js"></script>
<script charset="utf-8"
	src="${siteurl}assets/plugs/kindeditor/lang/zh_CN.js"></script>
<link rel="stylesheet"
	href="${siteurl}assets/plugs/tagsinput/jquery.tagsinput.css">


</head>

<body class="no-skin">
	<div id="navbar" class="navbar navbar-default">
		<script type="text/javascript">
			try {
				ace.settings.check('navbar', 'fixed')
			} catch (e) {
			}
		</script>

		[#include "/admin/common/navbar.html"]

		<!-- /.navbar-container -->
	</div>

	<div class="main-container" id="main-container">
		<script type="text/javascript">
			try {
				ace.settings.check('main-container', 'fixed')
			} catch (e) {
			}
		</script>

		<div id="sidebar" class="sidebar                  responsive">
			<script type="text/javascript">
				try {
					ace.settings.check('sidebar', 'fixed')
				} catch (e) {
				}
			</script>
			[#include "/admin/common/shortcuts.html"]
			<!-- /.sidebar-shortcuts -->

			<!-- .nav-list -->
			[#include "/admin/common/commonmenu.html"]
			<ul class="nav nav-list">[@menustag id=1] [#list list as item]
				[@menu item "1,55,56"] [/@menu] [/#list] [/@menustag]
			</ul>
			<!-- /.nav-list -->

			<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
				<i class="ace-icon fa fa-angle-double-left"
					data-icon1="ace-icon fa fa-angle-double-left"
					data-icon2="ace-icon fa fa-angle-double-right"></i>
			</div>

			<script type="text/javascript">
				try {
					ace.settings.check('sidebar', 'collapsed')
				} catch (e) {
				}

				function updatering() {
					$("#processinfos").slideDown();
					$.get("${siteurl}ring/downring.htm", function() {
						$("#processinfos").slideUp();
					});
				}
			</script>
		</div>

		<div class="main-content">
			<div class="breadcrumbs" id="breadcrumbs">
				<script type="text/javascript">
					try {
						ace.settings.check('breadcrumbs', 'fixed')
					} catch (e) {
					}
				</script>

				<ul class="breadcrumb">
					<li><i class="ace-icon fa fa-home home-icon"></i> <a href="#">首页</a>
					</li>

					<li class="active">修改文章</li>
				</ul>
				<!-- /.breadcrumb -->

				<div class="nav-search" id="nav-search">
					<form class="form-search">
						<span class="input-icon"> <input type="text"
							placeholder="Search ..." class="nav-search-input"
							id="nav-search-input" autocomplete="off" /> <i
							class="ace-icon fa fa-search nav-search-icon"></i>
						</span>
					</form>
				</div>
				<!-- /.nav-search -->
			</div>



			<div class="page-content">
				[#include "/admin/common/page.html"] [#include
				"/admin/common/settings.html"]
				<div class="row">
					<div class="col-xs-12">

						<form role="form" method="post" class="form-horizontal"
							action="${siteurl}/admin/article/model_update.htm">
							<input type="hidden" name="id" value="${article.id}"/>
							<div class="form-group">
								<label for="form-field-1"
									class="col-sm-3 control-label no-padding-right"> 名称</label>

								<div class="col-sm-9">
									<input type="text" name="title" value="${article.title!''}" class="col-xs-10 col-sm-10"
										placeholder="文章名称" id="form-field-1">
								</div>
							</div>
							<div class="form-group">
								<label for="form-field-1"
									class="col-sm-3 control-label no-padding-right"> 名称</label>

								<div class="col-sm-9">
									<input id="img"  value="${article.img!''}"  type="text" name="img" class="col-xs-10 col-sm-10"
										placeholder="封面" id="form-field-1">
										<input type="button" id="image1" value="选择图片" />
									<br/>
									<img alt="" src="" id="showimg" style="width:200px;display: none;">
								</div>
							</div>
							<div class="form-group">
								<label for="form-field-1"
									class="col-sm-3 control-label no-padding-right"> 分类</label>

								<div class="col-sm-9">
									<select name="catalog.id" class="col-xs-10 col-sm-10">
									    [#if list??]
									    [#list list as item]
										<option value="${item.id}" [#if article.catalog.id==item.id]selected="selected" [/#if]>${item.name!""}</option>
										[/#list]
										[/#if]
									</select>
								</div>
							</div>
						<div class="form-group">
								<label
									class="col-sm-3 control-label no-padding-right">摘要</label>

								<div class="col-sm-9">
									<textarea style="height: 60px;" type="text" name="introduction"
										class="col-xs-10 col-sm-10" placeholder=" 摘要"
										> ${article.introduction!''}</textarea>
								</div>
							</div>
							<div class="form-group">
								<label for="form-field-1"
									class="col-sm-3 control-label no-padding-right">描述</label>

								<div class="col-sm-9">
									<textarea style="height: 500px;" type="text" name="contents"
										class="col-xs-10 col-sm-10" placeholder=" 描述"
										id="form-field-1"> ${article.contents!''}</textarea>
								</div>
							</div>

							<div class="form-group">
								<label for="form-field-1"
									class="col-sm-3 control-label no-padding-right"> 标签</label>

								<div class="col-sm-9">
									<input id="tag" type="text" name="tag" value="${article.tag!''}" 
										class="col-xs-10 col-sm-10" placeholder="标签" id="form-field-1">
								</div>
							</div>
							<div class="clearfix form-actions">
								<div class="col-md-offset-3 col-md-9">
									<button type="submit" class="btn btn-info">
										<i class="ace-icon fa fa-check bigger-110"></i> 保存
									</button>

									&nbsp; &nbsp; &nbsp;
									<button type="reset" class="btn">
										<i class="ace-icon fa fa-undo bigger-110"></i> 重置
									</button>
								</div>
							</div>

							<div class="hr hr-24"></div>




						</form>


					</div>
				</div>


			</div>
		</div>
		<!-- /.main-content -->

		[#include "/admin/common/footer.html"]

	</div>
	<!-- /.main-container -->

	<!-- basic scripts -->

	[#include "/admin/common/scripts.html"]

	<script type="text/javascript"
		src="${siteurl}assets/plugs/tagsinput/jquery.tagsinput.js"></script>

	<script type="text/javascript">
		var editor = KindEditor.create('textarea[name="contents"]', {
			themeType : 'simple',
			width : '680px',
			minWidth : '680px',
			uploadJson : '${siteurl}/image/upmendaoimgwork.htm',
			fileManagerJson : '${siteurl}/image/listimages.htm',
			allowFileManager : true
		});
		KindEditor('#image1').click(function() {
			editor.loadPlugin('image', function() {
				editor.plugin.imageDialog({
					imageUrl : $('#img').val(),
					clickFn : function(url, title, width, height, border, align) {
						$('#img').val(url);
						editor.hideDialog();
						$("#showimg").attr("src",url);
						$("#showimg").show();
					}
				});
			});
		});
		
		
		function showtext() {

		}
		$(document).ready(function() {
			$('#tag').tagsInput({
				height : '20',
				width : '577',
				defaultText : "标签"
			});

		});
	</script>
</body>
</html>
